/*
NoBuffer Notepad Copyright (C) 2015  Mahmoud Jaoune

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef TEXTEDIT_H
#define TEXTEDIT_H

#include <QTextEdit>
#include <QPlainTextEdit>
#include <QFile>
#include <QStatusBar>
#include <QMessageBox>
#include <QFont>
#include "blockdb.h"

class NBN_TextEdit : public QPlainTextEdit
{
    Q_OBJECT

public:
    NBN_TextEdit(QWidget *parent);

public slots:
    void NBN_LoadFile(const char *fileName);
    void NBN_LoadBuffer(QString buffer);
    void NBN_ClearText();
    void NBN_LoadText(unsigned int index, NBN_TextEdit *currentTextEdit);
    void NBN_ResetCursor();
    void reloadSettings();

signals:
    void NBN_EnvironmentReady(unsigned int);
};

#endif // TEXTEDIT_H
